package day4;

import java.util.Scanner;

public class Students {
	private int id;
	private String name;
	private String sex;
	private int age;
	private String className;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}
	
	public Students() {
		
	}

	public Students(int id, String name, String sex, int age, String className) {
		super();
		this.id = id;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.className = className;
	}

	@Override
	public String toString() {
		return "Student [id=" + id + ", name=" + name + ", sex=" + sex + ", age=" + age + ", className=" + className
				+ "]";
	}

	void study(){
		System.out.println(className + "班的" + name + "正在学习");
	}
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		Students student = new Students();
		System.out.println(" aa ");
		int id = scanner.nextInt();
		student.setId(id);
		//System.out.println("id:" + student.id);
		System.out.println("id:" + student.getId());
	}
}
